import java.io.File;

public class Demo6 {
    public static void main(String[] args) {
        File file=new File("./test.txt");
        File file1=new File("./src/hehe");
        boolean result=file.renameTo(file1);
        System.out.println(result);
    }
}
